package com.ybb.pojo;



import lombok.Data;

import java.util.Date;

@Data
public class User {
    private Long id;
    private String userCode;//用户编码
    private String userName;
    private String userPassword;
    private Integer gender;
    private Date birthday;
    private  int age;
    private String phone;
    private String address;
    private Long userRole;//用户角色
    private Long createBy;//创建者
    private  Date creationDate;//创建时间
    private Long modifyBy;//更新者
    private  Date modifyDate;//更新时间
    private String userRoleName;//用户角色名




    public void setAge(Date birthday){
        this.age=new Date().getYear()- birthday.getYear();


    }

    public static void main(String[] args) {
        User user = new User();


    }

}

